#include <stdio.h>
//创建一个学生
struct stu
{
	char name[20];
	int age;
	double score;
};
//创建一本书类型
struct book
{
	char name;
	float price;
	char id[30];
};
int main()
{
	struct stu s = { "李承",21,150 }; //结构体的创建和初始化
	printf("%s%d%1f", s.name, s.age, s.score);//结构体变量.成员变量
	struct stu* ps = &s;
	printf("2:%s %d %lf\n", (*ps).name,(*ps).age,(*ps).score);
	printf("3:%s%d%1f", ps->name, ps->age, ps->score);
	return  0;
}